/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DialogVenda.java
 *
 * Created on 30/06/2011, 14:24:42
 */
package camada.apresentacao.dialog.venda;

/**
 *
 * @author prado
 */
public class DialogVenda extends javax.swing.JDialog {

    /**
     * Creates new form DialogVenda
     */
    public DialogVenda(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        this.setTitle("Orçamentos");
        this.setLocationRelativeTo(null);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btNovaVenda = new org.jdesktop.swingx.JXHyperlink();
        btNovaVenda1 = new org.jdesktop.swingx.JXHyperlink();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        btNovaVenda.setForeground(new java.awt.Color(0, 0, 0));
        btNovaVenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/venda/NovaVenda.png"))); // NOI18N
        btNovaVenda.setText("Venda sem orçamento. (A venda ja foi realizada antes do cadastro do orçamento).");

        btNovaVenda1.setForeground(new java.awt.Color(0, 0, 0));
        btNovaVenda1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/venda/VendaComOrcamento.png"))); // NOI18N
        btNovaVenda1.setText("Venda com orçamento. (A venda foi realizada apartir de um orçamento já cadastrado).");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btNovaVenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btNovaVenda1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btNovaVenda, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btNovaVenda1, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                DialogVenda dialog = new DialogVenda(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {

                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private org.jdesktop.swingx.JXHyperlink btNovaVenda;
    private org.jdesktop.swingx.JXHyperlink btNovaVenda1;
    // End of variables declaration//GEN-END:variables
}
